@import './variable.less';

.second-handHouse {
    .search-box {
        border-bottom: 1px solid #ccc;
        padding: 20px 0;
    }

    .search-input {
        >span {
            display: inline-block;
            border: 1px solid #ccc;
            border-right: none;
        }

        input {
            border: none;
            outline: none;
            height: 18px;
            width: 500px;
            padding: 10px;
        }

        button {
            height: 40px;
            vertical-align: middle;
            border-radius: 0;
            background-color: @theme;
            border-color: @theme;
        }
    }

    .hot-keywords {
        width: 400px;
        height: 40px;
        line-height: 40px;
        margin-left: 20px;

        ul>li {
            max-width: 90px;
            float: left;
            font-size: 13px;
            margin-right: 10px;
            cursor: pointer;

            &:hover {
                color: @theme;
            }
        }
    }

    .find-house {
        height: 40px;
        line-height: 40px;
        color: @theme;

        i {
            font-size: 20px;
            margin-right: 5px;
        }

        a {
            color: none;

            &:hover {
                color: @theme;
            }
        }
    }

    .select-box {
        background-color: #f8f8f8;
        margin-top: 20px;
        padding: 20px;
        margin-bottom: 20px;
        border: 1px solid #ccc;
    }

    .select-area {
        line-height: 40px;
        border-bottom: 1px dashed #ccc;
    }

    .selection {
        width: calc(100% - 32px);
        position: relative;
    }

    .select-tab {
        padding-left: 20px;
        padding-right: 150px;
        overflow: hidden;

        a {
            margin-right: 20px;
            font-size: 13px;
            cursor: pointer;

            &:hover {
                color: @theme;
            }

            &.active {
                color: @theme;
            }
        }

        >div {
            label {
                min-width: 100px;

                /deep/ .el-checkbox__label {
                    font-size: 13px;
                }
            }
        }

        i {
            color: #606266;
        }
    }

    .second-tabs {
        padding: 0 10px;
        line-height: 1.5;
        background-color: #fff;
        border: 1px solid #ddd;
        margin-bottom: 20px;

        a {
            margin-right: 20px;
            font-size: 13px;
            cursor: pointer;

            &:hover {
                color: @theme;
            }

            &.active {
                color: @theme;
            }

            &.disabled {
                pointer-events: none;
                font-weight: bold;
            }
        }
    }

    /deep/ .el-input__inner {
        height: 30px;
    }

    /deep/ .el-cascader .el-input .el-input__inner:focus,
    .el-cascader .el-input.is-focus .el-input__inner {
        border-color: @theme;
    }

    .hasmore {
        max-height: 40px;
    }



    .el-checkbox__label:hover {
        color: @theme;
    }

    /deep/ .el-checkbox__input.is-checked+.el-checkbox__label {
        color: @theme;
    }

    /deep/ .el-checkbox__input.is-focus .el-checkbox__inner {
        border-color: @theme;
    }

    /deep/ .el-checkbox__input.is-checked .el-checkbox__inner,
    .el-checkbox__input.is-indeterminate .el-checkbox__inner {
        background-color: @theme;
        border-color: @theme;
    }

    .el-checkbox__inner:hover {
        border-color: @theme;
    }

    .selected-input {
        display: inline-block;
        font-size: 12px;
        margin-left: 10px;

        .el-input {
            width: 45px;
            // padding: 0 3px;
            height: 25px;
            line-height: 20px;

            .el-input__inner {
                text-align: center;
                height: 25px;
                font-size: 12px;
                padding: 0;
            }
        }

        .em {
            display: inline-block;
            margin: 0 3px;
            color: #333;
        }

        .el-button {
            width: 45px;
            height: 20px;
            padding: 0 5px;
            margin-left: 5px;
        }
    }

    .addTab {
        position: absolute;
        top: 0;
        right: 0;
        font-size: 12px;
        cursor: pointer;

        &:hover {
            color: @theme;
        }
    }


    .control {
        width: 100%;
        text-align: center;
        padding: 10px 0;

        // height: 37px;
        // line-height: 37px;
        span {
            font-size: 14px;
            cursor: pointer;

            &:hover {
                color: @theme;
            }
        }
    }

    .tags {
        border-top: 1px solid #ddd;
        padding-top: 10px;

        span {
            margin-right: 5px;
        }

        .el-tag {
            color: #606266;
            border-color: #ccc;
        }

        em.el-icon-delete {
            color: #000;
            cursor: pointer;

            &:hover {
                color: @theme;
            }
        }

        i {
            color: @theme;

            &:hover {
                background-color: @theme;
            }
        }

    }

    .house-resource {
        width: 930px;

        .el-menu-demo {
            border-bottom: 2px solid @theme;

            .is-active {
                background-color: @theme;
            }

            li {
                font-size: 18px;
            }

            ul>li {
                font-size: 14px;
                float: left;
                margin-right: 20px;
                line-height: 60px;
                cursor: pointer;

                &:hover {
                    color: @theme;
                }

                &.active {
                    color: @theme;
                }

                i {
                    width: 16px;
                    height: 16px;
                    position: relative;
                    pointer-events: none;
                    color: #646566;

                    &:first-child {
                        position: absolute;
                        top: calc(50% - 12px);
                    }

                    &:last-child {
                        position: absolute;
                        bottom: calc(50% - 12px);
                    }
                }
            }
        }
    }

    .hd_title {
        margin-top: 5px;
        font-size: 22px;
        height: 60px;
        line-height: 60px;

        b {
            color: @theme;
        }
    }

    .tip {
        text-align: center;
        height: 100px;
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
        line-height: 100px;
        font-size: 20px;
    }

    .list-box {
        background-color: #fff;

        ul>li {
            display: block;
            padding: 30px 0;
            position: relative;
            border-top: 1px solid #ccc;

            h2 {
                cursor: pointer;

                &:hover {
                    color: @theme;
                }
            }


            &:hover {
                background-color: #f9f9f9;
            }

            &:last-child {
                border-bottom: 1px solid #ccc;
            }
        }

        .image {
            text-align: center;
            cursor: pointer;

            &:before {
                content: "";
                display: inline-block;
                height: 100%;
                vertical-align: middle;
                width: 0;
            }

            img {
                width: 230px;
                height: 170px;
                vertical-align: middle;
            }
        }

        .text {
            width: calc(100% - 250px);
            height: 170px;
            margin-left: 20px;
        }

        .attr {
            margin-top: 12px;
            font-size: 14px;
            height: 20px;
            line-height: 20px;

            .line {
                display: inline-block;
                width: 1px;
                height: 14px;
                background: #ddd;
                position: relative;
                top: 2px;
                margin: 0 5px;
            }
        }

        .labs {
            margin-top: 15px;

            .tag1 {
                background-color: @theme;
                color: #fff;
            }

            span {
                border: none;
                border-radius: 0;
                height: 28px;
                margin-right: 10px;
                line-height: 28px;
                background-color: #c5eff7;
                color: #049372;
            }
        }

        .price {
            text-align: right;
            position: absolute;
            right: 30px;
            top: 80px;

            p {
                margin-top: 5px;
            }

            span {
                color: #e03236;

                b {
                    font-size: 30px;
                }
            }

            .btn {
                border: 1px solid #e03236;
                display: inline-block;
                height: 28px;
                line-height: 28px;
                padding: 0 7px;
                font-size: 12px;
                color: #666;
                background-color: #f9eeee;
                cursor: pointer;

                img {
                    vertical-align: middle;
                    margin-right: 5px;
                }

                &:hover {
                    color: #e03236;
                }
            }
        }
    }

    // 右侧广告
    .other {
        width: 200px;
        // border: 1px solid #000;
    }

    .sold {
        width: 100%;
        cursor: pointer;
        margin-bottom: 20px;

        .img-bg {
            width: 200px;
            height: 200px;
            background-image: url("../images/sold-house.png");
            background-repeat: no-repeat;
        }

        .mes {
            text-align: center;

            span {
                color: #afafaf;
            }

            h3 {
                background-color: @theme;
                color: #fff;
                padding: 5px 0;
                margin: 0 10px;
            }
        }

        &:hover {
            .img-bg {
                background-image: url("../images/sold-house-active.png");
            }
        }
    }

    .ad {
        text-align: center;
        margin-bottom: 20px;
        width: 200px;
        height: 200px;
        line-height: 200px;
    }

    // 分页
    .pagination {
        width: 100%;
        // position: absolute;
        // bottom: 0;
        margin: 20px 0;
        text-align: center;

        .el-pagination.is-background .el-pager li:not(.disabled).active {
            background-color: @theme;

            &:hover {
                color: #fff;
            }
        }

        .el-pagination.is-background .el-pager li:not(.disabled):hover {
            color: @theme;
        }
    }
}